const host = 'http://localhost:3000'

// 用户
const login = `${host}/api/login` // 登陆
const register = `${host}/api/register` // 注册
const getUsers = `${host}/api/user/query` // 获取用户列表
const updatePwd = `${host}/api/user/update` // 修改用户密码
const deleteUser = `${host}/api/user/delete` // 删除用户
const getUserInfo = `${host}/api/getUserInfo` // 获取用户详情

// 产品
const getProducts = `${host}/api/product/query`
const updateProduct = `${host}/api/product/update`
const deleteProduct = `${host}/api/product/delete`
const getProduct = `${host}/api/product/detail`

const apiurl = {
  login,
  register,
  getUsers,
  updatePwd,
  deleteUser,
  getUserInfo,
  getProducts,
  updateProduct,
  deleteProduct,
  getProduct
}

export default apiurl
